package principal;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class ConfigsIniciales {
	private static ConfigsIniciales instance = null;
	
	private ArrayList<Tablero> configs;
	
	private ConfigsIniciales() {
		configs = new ArrayList<Tablero>();
		
		try {
		    BufferedReader in = new BufferedReader(new FileReader("configuraciones/planificacion.txt"));
		    String str;
		    while ((str = in.readLine()) != null) {
		        configs.add(new Tablero(str));
		    }
		    in.close();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
	
	public static ConfigsIniciales getInstance() {
		if (instance == null)
			instance = new ConfigsIniciales();
		return instance;
	}
	
	public ArrayList<Tablero> getConfigs() {return configs;}
	
}
